    <include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Collection/index')}">采集列表</a></li>
        <li class="active"><a href="javascript:;">添加采集</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Collection/post')}">
        <input type="hidden" name="id" value="{$data['id']}">
        <div class="form-group">
            <label for="input-source" class="col-sm-2 control-label"><span class="form-required">*</span>文章来源</label>
            <div class="col-md-6 col-sm-6">
                <input type="text" class="form-control" id="input-source" name="source" value="{$data['source']}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-title" class="col-sm-2 control-label"><span class="form-required">*</span>标识名称</label>
            <div class="col-md-6 col-sm-6">
                <input type="text" class="form-control" id="input-title" name="title" value="{$data['title']}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-url" class="col-sm-2 control-label"><span class="form-required">*</span>采集地址</label>
            <div class="col-md-6 col-sm-6">
                <input type="text" class="form-control" id="input-url" name="url" value="{$data['url']}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-url_code" class="col-sm-2 control-label"><span class="form-required">*</span>目标网址编码</label>
            <label class="radio-inline">
                <input type="radio" name="url_code" id="inlineRadio1" value="utf-8" checked> utf-8
            </label>
            <label class="radio-inline">

                <input type="radio" name="url_code" id="inlineRadio2" value="gb2312" <eq name="data['url_code']" value='gb2312'>checked</eq>> gb2312
            </label>

        </div>
        <div class="form-group">
            <label for="" class="col-sm-2 control-label"><span class="form-required">*</span>开始页码</label>
            <div class="col-md-1 col-sm-4">
                <input type="text" class="form-control"  name="start_pages" value="1" value="{$data['start_pages']}" >
            </div>
            <label for="" class="col-sm-2 control-label"><span class="form-required">*</span>结束页码</label>
            <div class="col-md-1 col-sm-4">
                <input type="text" class="form-control"  name="end_pages" value="1" value="{$data['end_pages']}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-add_pages" class="col-sm-2 control-label"><span class="form-required">*</span>每页递增</label>
            <div class="col-md-1 col-sm-2">
                <input type="text" class="form-control"  name="add_pages" value="1" value="{$data['add_pages']}">
            </div>
        </div>
        <hr>
        <h3><b>列表页获取配置</b></h3>
        <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>匹配网址</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control"  name="match_url"  value="{$data['match_url']}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>标题过滤规则</label>
            <div class="col-md-6 col-sm-10">
                <textarea class="form-control"  name="code[title_rule]">{$data['title_rule']}</textarea>
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>开始位置唯一标识</label>
            <div class="col-md-6 col-sm-10">
                <textarea  class="form-control"  name="code[start_pos]" >{$data['start_pos']}</textarea>
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>结束位置唯一标识</label>
            <div class="col-md-6 col-sm-10">
                <textarea  class="form-control"  name="code[end_pos]" >{$data['end_pos']}</textarea>
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>对区域网址必须包含</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control"  name="must_character" value="{$data['must_character']}">
            </div>
        </div>
        <hr>
        <h3><b>内容配置</b></h3>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>内容获取预览网址</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control"  name="pre_url" value="{$data['pre_url']}">
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>内容开始位置为标识</label>
            <div class="col-md-6 col-sm-10">
                <textarea class="form-control"  name="code[content_start_pos]" >{$data['content_start_pos']}</textarea>
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>内容结束位置唯一标识</label>
            <div class="col-md-6 col-sm-10">
                <textarea class="form-control"  name="code[content_end_pos]" >{$data['content_end_pos']}</textarea>
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-6 col-md-6 control-label"><span class="form-required">*</span>过滤规则</label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="1" <if in_array(1,$data['filter_rule'])> checked </if>  > a
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="2"  <if in_array(2,$data['filter_rule'])> checked </if>>javascript
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="3"  <if in_array(3,$data['filter_rule'])> checked </if>><！--()-->
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="4"  <if in_array(4,$data['filter_rule'])>checked</if> >table
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="5"  <if in_array(5,$data['filter_rule'])> checked </if>>style
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="6"  <if in_array(6,$data['filter_rule'])> checked </if>>img
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="7"  <if in_array(7,$data['filter_rule'])> checked </if>>Object
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="8"  <if in_array(8,$data['filter_rule'])> checked </if>>embed
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="9"  <if in_array(9,$data['filter_rule'])> checked</if> >iframe
             </label>
        <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="10"  <if in_array(10,$data['filter_rule'])> checked</if> >param
             </label>
        <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="11"  <if in_array(11,$data['filter_rule'])> checked </if>><.div
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="12"  <if in_array(12,$data['filter_rule'])> checked </if> >div.>
             </label>
        </div>



        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">提交</button>
            </div>
        </div>
    </form>
</div>

<script src="__STATIC__/js/admin.js"></script>
</body>
</html>